package com.wuhunyu.service;

import com.wuhunyu.commonutils.query.CommonQuery;
import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.entities.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuhunyu.query.EduTeacherQuery;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-12
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 查询全部教师
     * @return
     * @param eduTeacherQuery
     */
    public CommonResult selectAllTeacher(EduTeacherQuery eduTeacherQuery);

    /**
     * 逻辑删除教师
     * @return
     * @param id
     */
    public CommonResult deleteTeacher(String id);

    /**
     * 添加教师
     * @param eduTeacher
     * @return
     */
    public CommonResult insertTeacher(EduTeacher eduTeacher);

    /**
     * 查询指定教师
     * @param id
     * @return
     */
    public CommonResult selectTeacherById(String id);

    /**
     * 修改教师信息
     * @param eduTeacher
     * @return
     */
    public CommonResult updateTeacher(EduTeacher eduTeacher);

    /**
     * 为下拉框提供讲师id和name
     * @return
     */
    public CommonResult selectTeacherForSelect();

    /**
     * 根据id排序，并取前4条教师记录
     * @return
     */
    public CommonResult selectTeachers();

    /**
     * 为前端查询名师提供数据
     * @param commonQuery
     * @return
     */
    public CommonResult selectTeachersForFront(CommonQuery commonQuery);

    /**
     * 根据教师id查询讲师课程
     * @param teacherId
     * @return
     */
    public CommonResult selectCourseByTeacherId(String teacherId);

}
